package com.matt.foundation.vo.children;

import com.matt.domain.Children;
import com.tuo51.foudation.utils.CopyUtils;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class ChildrenVO {

    String id;

    boolean deleted;

    Date created;

    private String name;

    private String orgId;

    private String nickName="";

    private Integer gender;

    private Date birthday;

    private String weight;

    private String height;

    private String header;

    private String remark = "";

    private String imgUrl;

    private String staffId;

    private Date lastEvaluateDate;

    private Date nextEvaluateDate;

    private Integer month;

    @ApiModelProperty("身份证号")
    private String idCard;

//    private ChildrenExtendInfoVO extendInfo;

    public static ChildrenVO of(Children children){
        ChildrenVO ret = new ChildrenVO();

        CopyUtils.copyProperties(children, ret);
//        if (children.getExtendInfo() != null) {
//            ret.setExtendInfo(ChildrenExtendInfoVO.of(children.getExtendInfo()));
//        }

        return ret;
    }
}
